'''
Created on 2011-7-11

@author: Administrator
'''
from google.appengine.ext import db
class Subscription(db.Model):
    streamkey = db.StringProperty(required=True) # refer stream key
    subscriber = db.StringProperty(required=True) # sub user key
    subscriber_uid = db.IntegerProperty(required=True)
    target = db.StringProperty()      # where to dump this
    state = db.StringProperty()
    extra = db.TextProperty()
    created_time = db.DateTimeProperty(auto_now_add=True)
    version = db.FloatProperty(default=1.0)
